package mashuaiproject.mashuaiproject.exption;

public enum CustomizeCode implements ICustomizeErrorCode {

    QUESTION_NOT_FOUND(2001,"你的稳日已经不存在，要不要换个") ,
    TARGET_NOT_FOUND(2002,"未选择任何问题或者评论进行回复") ,
    NO_LOGIN(2003,"你没有登陆请去登录"),
    SYS_ERRor(2004,"服务本来"),
    TYPE_PARAM_WORME(2005,"评论类型错误"),
    COMENT_NOT_FOUNF(2006,"你找到评论不存在"),
    COUNT_IS_EMPTY(2007,"内容不可以为空")
    ;

    @Override
    public String getMessage() {
        return message;
    }

    @Override
    public Integer getCode() {
        return code;
    }

    private String message;
    private  Integer code;

    CustomizeCode(String message){
       this.message=message;
    }

    CustomizeCode(Integer code,String message) {
        this.message = message;
        this.code = code;
    }

}
